{% extends "base.html" %}
{% block content %}
		
		
		
		
		
	<div class="main_table">	
		
				
		
		<div class="room_description">
			<p>{{room.get_description}}</p>
		</div>
		
		{% if cutscene %}
		<div class="cutscene">
			<p>{{cutscene}}</p>
		</div>
		{% endif %}
		
		
		<div class="room_image">
			{% if room.get_image %}
			<img src="images/{{room.get_image}}"/>
			{% endif %}
		</div>
		

		<div class="player_inventory">
			<p style="text-decoration:underline;">Backpack:</p>
			{% if player.inventory %}
			<form action="{{this_page}}" method="post">
				{% for item in player.inventory.values %}
				<div><input type="checkbox" name="player_inventory" value="{{item.get_id}}"/>{{item.get_description}}</div>
				{% endfor %}
				<div><input type="submit" name="inventory" value="Drop item(s)"/></div>
			</form>
			{% else %}
			<p>Your backpack is empty.</p>
			{% endif %}
		</div>
		
		<div class="room_inventory">
			{% if room.inventory %}
			<p>You see some stuff in this room:</p>
			<form action="{{this_page}}" method="post">
				{% for item in room.inventory.values %}
				<div>
					<input type="checkbox" name="room_inventory" value="{{item.get_id}}"/>{{item.get_description}}</div>
			{% endfor %}
			<div>
				<input type="submit" name="inventory" value="Pick up item(s)"/></div>
			</form>
			{% else %}
			<p>Nothing of value is visible in the room.</p>
			{% endif %}
		</div>

		

		<div class="actions">
			<p style="text-decoration:underline;">Actions:</p>
			{% for action in menu.actions.values %}
			<div class="action_form">
				<form action="{{this_page}}" method="{{action.get_method}}">
				      <input type="hidden" name="action_name" value="{{action.get_id}}" />
				      <input type="submit" name="action" value="{{action.get_description}}"/>
				</form>
			</div>
			{% endfor %}
		</div>
		
	
	</div>
		
{% endblock content %}
